package com.redis.redisdemo.pojo;


import lombok.Data;

import java.io.Serializable;

@Data
public class User implements Serializable {
   public String name;
   public Integer age;

    //全参构造
    public User(String name, Integer age) {
        this.name = name;
        this.age = age;
    }
    //无参构造
    public User() {

    }
    @Override
    public String toString() {
        return "User{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}
